<script setup lang="ts">
import b from '~/assets/images/news/banner-bg.jpg'
</script>

<template>
  <div class="works-detail">
    <div class="works-detail-top">
      <div class="banner-container">
        <BannerMedia :url="b"/>
      </div>
    </div>
    <div class="works-detail-intro">
      <div class="intro-1">快手开屏营销活动</div>
      <div class="intro-2">饶有兴趣，触手可及</div>
      <div class="intro-3">快手，短视频直播APP</div>
      <div class="intro-line"></div>
    </div>
    <div class="works-detail-content">
      <div class="detail-container"></div>
      <div class="thanks">
        <div class="detail-name">快手 执象广告团队</div>
      </div>
      <NuxtLink to="/" class="next">
        <div class="tips">下一个案例</div>
        <div class="next-name">500强集团官网升级多元价值的高效传递</div>
        <div class="next-img">
          <img src="" alt="">
        </div>
      </NuxtLink>
      <NuxtLink to="/works" class="more-btn">
        <span class="main">精选案列</span>
        <span class="float-num">33</span>
      </NuxtLink>
    </div>
  </div>
</template>

<style scoped lang="scss">
.works-detail {
  &-top {
    position: relative;
    width: 24rem;
    height: 8.54rem;
    padding-left: 1.66rem;
    padding-top: 3.78rem;

    .title {
      font-size: 1rem;
      font-weight: bold;
      color: #FFFFFF;
      line-height: 0.6rem;
    }

    .banner-container {
      z-index: -1;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }

  &-intro {
    padding: 1rem 1.75rem 0.64rem 1.73rem;

    .intro {
      &-1 {
        font-size: 0.6rem;
        font-weight: bold;
        margin-bottom: 0.2rem;
      }

      &-2 {
        font-size: 0.45rem;
        font-weight: bold;
        margin-bottom: 0.51rem;
      }

      &-3 {
        font-size: 0.25rem;
        font-weight: 400;
        margin-bottom: 0.5rem;
      }
    }

    .intro-line {
      width: 20.35rem;
      height: 0.01rem;
      background: #E7ECEA;
      margin-left: 0.06rem;
    }
  }

  &-content {
    padding-left: 1.73rem;
    padding-right: 1.7rem;

    .detail-container {
      width: 20.51rem;

      img {
        width: 100%;
        height: auto;
      }
    }

    .thanks {
      width: 20.51rem;
      height: 9.68rem;
      background: url(~/assets/images/works/thanks.jpg) no-repeat;
      background-size: 20.51rem 9.68rem;
      padding-left: 1.35rem;
      padding-top: 6.58rem;

      .detail-name {
        font-size: 0.38rem;
        font-weight: 400;
        color: #C9C9C9;
      }
    }

    .next {
      display: block;
      text-align: center;

      .tips {
        padding-top: 1.89rem;
        margin-bottom: 0.51rem;
      }

      .next-name {
        width: 20.21rem;
        font-size: 0.45rem;
        font-weight: 400;
        margin-bottom: 1.4rem;
      }

      .next-img {
        width: 20.21rem;
        border-bottom: 0.04rem solid #f0f0f0;

        img {
          display: block;
          width: 7.06rem;
          height: 3.4rem;
          margin: auto;
        }
      }
    }

    .more-btn {
      display: block;
      width: 2.53rem;
      height: 0.8rem;
      border: 0.04rem solid #157FBB;
      border-radius: 1rem;
      position: relative;
      text-align: center;
      margin:0.9rem  auto 1.23rem;

      .main {
        line-height: 0.8rem;
        font-size: 0.26rem;
        font-weight: 500;
      }

      .float-num {
        height: 0.19rem;
        font-size: 0.25rem;
        display: block;
        position: absolute;
        top: 0.02rem;
        left: 1.75rem;
        color: #157FBB;
      }
    }
  }
}
</style>
